Create a file Codechef.java
import java.util.*;
import java.lang.*;
import java.io.*;
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
System.out.println("Hello Java");
}
}
sudo apt install openjdk-17-jdk-headlessjavac codechef.java- this will create a
Codechef.classfile
- this will create a
java Codechef

